<!doctype html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>登录</title>
</head>
<body>
    hello
    <h1 id="title"></h1>
    <div>

        <form action="login">
            账号: <input type="text" name="username"/> <br/>
            密码: <input type="password" name="password"/> <br/>
            <input value="登录" type="submit">
        </form>

    </div>
    <script src="./jquery.min.js"></script>
    <script>

        $(function() {

            $.get("getInfo", function(data) {
                console.log($("#title"));

                $("#title").text(data);
            });
        })

    </script>
</body>
</html>